package top.shiyiri.shops.service;

import top.shiyiri.shops.bean.ShopParTop20;
import top.shiyiri.shops.dao.ShopParTop20Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/28
 */
@Service
public class ShopParTop20Service {
    @Autowired
    private ShopParTop20Dao dao;

    public List<ShopParTop20> shopParTop20ByPage(int page, int i) {
        return dao.shopParTop20ByPage((page - 1)*i, i);
    }

    public int totalLines() {
        return dao.totalLines();
    }

    public List<ShopParTop20> shopParTop20() {
        return dao.shopParTop20();
    }
}
